package com.lanou3g.code0412.Compute;

/**
 * Created by dllo on 18/4/12.
 */

//一个类如果继承抽象类,只有两个选择,1.自己成为抽象类;2.覆写父类抽象方法

public class OpAdd extends Operator{


    @Override
    public int compute(int num1, int num2) {
        return num1 + num2;
    }


}
